import {combineReducers, createStore} from 'redux';
import cameraReducer from './camera/cameraReducer';
import settingReducer from "./setting/settingReducer";

const rootReducer = combineReducers({
  cameraConfig: cameraReducer,
  settingConfig: settingReducer
});

const store = createStore(rootReducer);

export type RootState = ReturnType<typeof store.getState>;

export default store;
